package com.matt.docpro.model;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * Appointment
 * Created by on 2024/02/20.
 */
@Data
public class Appointment {
    /** ID */
    String id;
    /** 科室ID */
    String clinicId;
    String clinicNm;
    /** 医生ID */
    String docId;
    String docNm;
    String docIcon;
    /** 病人ID */
    String patientId;
    String patientNm;
    String patientIcon;
    String patientPhone;
    String patientMail;
    /** 预约日期 */
    String appointmentDate;
    Integer period;
    /** 病情 */
    String detail;
    /** 金额 */
    Double price;
    /** 状态 */
    String stateId;
    String stateNm;
    int patCount;
    int stage;

    public String getFormatPeriod() {
        return switch (period) {
            case 0 -> "08:00-09:00";
            case 1 -> "09:00-10:00";
            case 2 -> "10:00-11:00";
            case 3 -> "13:00-14:00";
            case 4 -> "14:00-15:00";
            case 5 -> "15:00-16:00";
            case 6 -> "17:00-22:00";
            case 7 -> "23:00-07:00";
            default -> "无预约";
        };
    }

}
